//
//  Player.h
//  Soccer
//
//  Created by Hyun-Woong Kim on 09. 04. 29.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MovableObject.h"

typedef enum PlayerStatus
{
	Normal,
	Stun,
	Foul
} PlayerStatus;

typedef enum Team
{
	TeamA = 0,
	TeamB = 1
} Team;

/**
 Player
 */
@interface Player : MovableObject
{
	Team team_;
	// 누가 발급할 것인가?
	NSString *id;
	
	int	index;
	NSString *playerName;
	PlayerStatus status;
	BOOL isPlayable;
	int frameNumber;
	int stunDurationByFrame;
	
	// minimap player spirte
	Sprite* miniMapPlayer;
}

@property BOOL isPlayable;
@property(readonly) Team team;
@property(assign) PlayerStatus status;
@property int stunDurationByFrame;
@property(assign) Sprite* miniMapPlayer;

- (id)initWithPosition:(CGPoint)pos team:(Team)team dirRad:(double)rad;
- (void)setNormalAnimation:(ObjectSprite *)sprite;
- (void)setStunnedAnimation:(ObjectSprite *)sprite;

@end
